#include "Seek.h"
#include "Agent.h"
#include "SteeringOutput.h"

namespace Engine
{
	void Seek::Update(SteeringOutput* output)
	{
		output->linear = m_target->GetPos() - m_parent->GetPos();

		output->linear.Normalize();
		output->linear *= m_parent->GetMaxSpeed();

		output->angular = 0;
	}
}